package com.fit.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.fit.interfaces.RecordDamage;

public class RecordDamagesBean implements RecordDamages {

	private Map<String, RecordDamage> damages = new HashMap<String, RecordDamage>();
	
	/* (non-Javadoc)
	 * @see com.fit.service.Damages#save(com.fit.interfaces.RecordDamage)
	 */
	public RecordDamage save(RecordDamage record){
		return damages.put(record.getRecordDamageId(), record);
	}
	/* (non-Javadoc)
	 * @see com.fit.service.Damages#retrive()
	 */
	public Collection<RecordDamage> retrive(){
		return damages.values();
	}
	public RecordDamage retriveSingleDamages(String id){
		return damages.get(id);
	}
}
